﻿@model WD.Db.Contract.Rbac_User
@{
    ViewBag.Title = "WD.Db.Contract.Model.Rbac_User_Create";
    Layout = "~/Views/Shared/_LayoutEdit.cshtml";
}
<form id = "Rbac_User_mainForm" action="@Url.Action("Edit", "Rbac_User")" method="POST">
    <div class="form-group col-xs-6">
        @Html.LabelFor(model => model.UserID, "用户帐号", new { @class = "" })
        @Html.TextBoxFor(model => model.UserID, new { @class = "form-control" })
    </div>
    <div class="form-group col-xs-6">
        @Html.LabelFor(model => model.UserName, "用户名", new { @class = "" })
        @Html.TextBoxFor(model => model.UserName, new { @class = "form-control" })
    </div>
    <div class="form-group col-xs-6">
        @Html.LabelFor(model => model.PWD, "用户密码", new { @class = "" })
        @Html.TextBoxFor(model => model.PWD, new { @class = "form-control", placeholder = "修改时默认为空，则不修改密码",Value="",Type = "password" })
    </div>
    <div style="display: none;">
        <div class="form-group col-xs-6">
            @Html.TextBoxFor(model => model.DepartmentID, new { @class = "form-control" })
        </div>
        <div class="form-group col-xs-6">
            @Html.TextBoxFor(model => model.PWD, new { @class = "form-control" })
        </div>
        <div class="form-group col-xs-6">
            <input class="form-control "  role="date-picker" id="LastLoginDate" name="LastLoginDate" value="@Model.LastLoginDate" type="text" data-format="yyyy-mm-dd" />
        </div>
        <div class="form-group col-xs-6">
            @Html.TextBoxFor(model => model.LastLoginIP, new { @class = "form-control" })
        </div>
        <div class="form-group col-xs-6">
            @Html.TextBoxFor(model => model.UserPic, new { @class = "form-control" })
        </div>
        @Html.HiddenFor(model => model.ID)
        <div class="form-group col-xs-6">
            <input class="form-control "  role="date-picker" id="CreateTime" name="CreateTime" value="@Model.CreateTime" type="text" data-format="yyyy-mm-dd" />
        </div>
        <div class="form-group col-xs-6">
            @Html.LabelFor(model => model.IsDeleted, "IsDeleted", new { @class = "" })
            <div class="checkbox-nice">
                <input type="checkbox" id="IsDeleted" name="IsDeleted">
                <label for="IsDeleted">
                    IsDeleted
                </label>
                <input name="IsDeleted" type="hidden" value="false">
            </div>
        </div>
    </div>



</form>

<div class="clearfix"></div>

<script>
    function Rbac_UserCheckField() {
        //TODO 检查字段必填项 必须有返回值（成功TRUE,失败FALSE）

        return true;
    }

</script>

